#!/usr/bin/env python3

import sys
import json

for line in sys.stdin:
    for word in line.split():
        print("{}\t{}".format(json.dumps(word), json.dumps(1)))

